function selectCodeType(type) {
    let data = myAjax("/selectCodeType", {codeType: type}, "post");
    data = data.list;
    let html = '<option value=""></option>';
    for (let i = 0; i < data.length; i++) {
        html += '<option value="' + data[i].key + '">' + data[i].value + '</option>'
    }
    console.log(html);
    $("#"+type+"").html(html);
}